package me.khrystal.rxnews.annotation;

import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

/**
 * @FileName: me.khrystal.rxnews.annotation.ActivityFragmentInject.java
 * @Fuction: Activity、Fragment初始化用到的注解
 * @author: kHRYSTAL
 * @email: 723526676@qq.com
 * @date: 2016-03-07 15:26
 * @UpdateUser:
 * @UpdateDate:
 */

@Retention(RetentionPolicy.RUNTIME)
@Target({ElementType.TYPE})//类注解
public @interface ActivityFragmentInject {

    /**
     * 顶部布局的id
     */
    int contentViewId() default -1;

    /**
     * 菜单id
     */
    int menuId() default -1;

    /**
     * 是否开启侧滑
     */
    boolean enableSlidr() default false;

    /**
     * 是否存在NavigationView
     */
    boolean hasNavigationView() default false;

    /**
     * toolbar的标题id
     */
    int toolbarTitle() default -1;

    /**
     * toolbar的菜单按钮
     */
    int toolbarIndicator() default -1;

    /**
     * toolbar 菜单默认选中项
     */
    int menuDefaultCheckedItem() default -1;
}
